<?php
class template_detail extends theme
{
	
	protected function head()
	{
	?>
<link type="text/css" rel="stylesheet" href="templates/product/css/detail.css">
<script type="text/javascript" language="javascript" src="templates/product/js/detail.js"></script>
	<?php
	}

	protected function center()
	{
		$product = $this->get('product');
		?>
<div class="center-title">业务内容</div>
<div class="center-content">

	<div class="product">
		<div class="image">
		<img src="storage/product/large_<?php echo $product->image; ?>" width="200" height="200" border="0" alt="<?php echo $product->name; ?>" />
		</div>
		<div class="detail">
			<h2><?php echo $product->name; ?></h2>
			<div class="hits">浏览量: <?php echo $product->hits; ?>次</div>
			<div class="btns">
				<input type="button" class="btn-create" onclick="javascript:window.location.href='<?php echo url('./?controller=pricing&task=create&menu_id=5' ); ?>';" value="马上咨询报价"/>
			</div>
		</div>
		<div class="clr"></div>
	</div>

</div>


<div class="center-title">详情</div>
<div class="center-content">

<?php echo $product->description; ?>

</div>
		<?php
	}		
		

}
?>